<template>
	<view class="theme-item">
		<navigator url="/pages/class-list/class-list" class="box" v-if="!isMore">
			<image class="pic" src="../../common/images/preview2.jpg"></image>
			<view class="title">明星美女</view>
			<view class="time">3天前更新</view>
		</navigator>
		<navigator url="/pages/classfy/classfy" open-type="reLaunch" class="box more" v-if="isMore">
			<image class="pic" src="../../common/images/more.jpg"></image>
			<view class="title">
				<uni-icons type="more-filled" size="34" color="#fff">
					<view class="text">更多</view>
				</uni-icons>
			</view>
		</navigator>
	</view>
</template>

<script setup>
	defineProps({
		isMore: {
			type: Boolean,
			default: false
		}
	})
</script>

<style lang="scss" scoped>
.theme-item{
	border-radius: 10rpx;
	overflow: hidden;
	.box{
		position: relative;
		height: 340rpx;
		.pic{
			width: 100%;
			height: 100%;
		}
		.title{
			position: absolute;
			bottom: 0;
			height: 70rpx;
			width: 100%;
			line-height: 70rpx;
			text-align: center;
			font-size: 30rpx;
			color: #fff;
			background-color: rgba(0, 0, 0, 0.2);
			text-align: center;
			backdrop-filter: blur(20rpx); // 磨砂背景
			font-weight: 600;
		}
		.time{
			position: absolute;
			top: 0;
			left: 0;
			padding: 6rpx 12rpx;
			background-color: rgba(250,129,90,0.7);
			backdrop-filter: blur(30rpx);
			font-size: 22rpx;
			color: #fff;
			border-radius: 0 0 20rpx 0;
			transform: scale(0.8);
			transform-origin: left top;
		}
	}
	.more{
		.title{
			display: flex;
			align-items: center;
			justify-content: center;
			height: 100%;
			width: 100%;
			backdrop-filter: blur(10rpx);
			.text{
				font-size: 28rpx;
			}
		}
	}
}
</style>